package cn.com.duiba.millionaire.center.biz.dao;

import cn.com.duiba.millionaire.center.api.requestParam.AccountRecordRequestParam;
import cn.com.duiba.millionaire.center.biz.entity.MillionaireConsumerAccountRecordEntity;

import java.util.List;

/**
 * Created by sty on 1/18/18.
 */
public interface MillionaireConsumerAccountRecordDao {
    /**
     * 插入
     * @param millionaireConsumerAccountRecordEntity
     * @return
     */
    MillionaireConsumerAccountRecordEntity insert(MillionaireConsumerAccountRecordEntity millionaireConsumerAccountRecordEntity);

    /**
     * 批量插入
     * @param records
     * @return
     */
    int batchInsert(List<MillionaireConsumerAccountRecordEntity> records);


    int queryAccountRecordPageCount(AccountRecordRequestParam param);


    List<MillionaireConsumerAccountRecordEntity> queryAccountRecordPage(AccountRecordRequestParam param);


    List<MillionaireConsumerAccountRecordEntity> selectAccountListByParam(AccountRecordRequestParam param);
    /**
     * 根据业务类型及ID查询用户账户变更记录
     * @param consumerId
     * @param bizType
     * @param bizId
     * @return
     */
    MillionaireConsumerAccountRecordEntity findByConsumerIdAndBizTypeAndBizId(Long consumerId, Integer bizType, String bizId);
}
